package com.cg.managesystem.service;

import com.cg.managesystem.entity.Order;

import java.util.List;

/**
 * Created on 2019/8/13 by Tinchi
 **/
public interface OrderService {

    List<Order> findAllOrders();

    Order findOrderById(Integer id);

    int updateOrderById(Order order);

    int addOrder(Order order);

    int deleteOrderById(Integer id);

    //用户创建订单
    int createOrder(Order order);

    //  按orderId更新status
    int updateByPrimaryKey(Order order);
}
